#include "C_Rect.h"


C_Rect::C_Rect()
{
}


C_Rect::~C_Rect()
{
}

void C_Rect::render()
{
	glPushMatrix();
	glTranslatef(mouseX() - 25.0f, mouseY() - 25.0f, 0.0f);

		GLfloat vec[] = {
			0.0f, 0.0f,
			0.0f, 50.0f,
			50.0f, 0.0f,
			50.0f, 50.0f
		};
		glColor3f(1.0f, 1.0f, 1.0f);
		glEnableClientState(GL_VERTEX_ARRAY);
			glVertexPointer(2, GL_FLOAT, 0, vec);
			glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
		glDisableClientState(GL_VERTEX_ARRAY);
	glPopMatrix();
}

void C_Rect::update()
{

}
